home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-25 | 1.7 KB | 67 lines | [TEXT/CWIE] |
- // ==================================================
- // UFinderEvents.h
- // Copyright (C) 1997 Mizutori Tetsuya
- // March 24, 1997.
- // ==================================================
- // All documents are pretty-printed in 10-point Geneva font.
-
- #pragma once
-
- class UFinderEvents {
-
- public:
- UFinderEvents();
- ~UFinderEvents();
-
- // Send a 'Open Selection with File' event to the Finder.
- static void OpenSelection(
- const FSSpec & inFSSpec );
-
- static void OpenSelection(
- ConstStr255Param inFullPathname );
-
- // Send a 'GetInfo Selection with File' event to the Finder.
- static void GetInfoSelection(
- const FSSpec & inFSSpec );
-
- static void GetInfoSelection(
- ConstStr255Param inFullPathname );
-
- protected:
-
- // Send a 'XXXX Selection for File' event to the Finder.
- static void SendAEWithSelectionToFinder(
- AEEventID inAEEventID,
- const FSSpec & inFSSpec );
-
- static void SendAEWithSelectionToFinder(
- AEEventID inAEEventID,
- ConstStr255Param inFullPathname );
-
- // Create an inAEEventID event to be sent to Finder.
- static void CreateAppleEventForFinder(
- AppleEvent & ioAppleEvent,
- AEEventID inAEEventID );
-
- // Put the directory info of file or pathname to the event as a direct parameter.
- static void PutParamContainer(
- AppleEvent & ioAppleEvent,
- const FSSpec & inFSSpec );
-
- static void PutParamContainer(
- AppleEvent & ioAppleEvent,
- ConstStr255Param inFullPathname );
-
- // Add a selection of file[s] or pathname[s] as an "items" parameter.
- static void PutParamItems(
- AppleEvent & ioAppleEvent,
- const FSSpec & inFSSpec );
-
- static void PutParamItems(
- AppleEvent & ioAppleEvent,
- ConstStr255Param inFullPathname );
-
- };
-
- // end of definitions
-